<script type="text/javascript" src="<?php echo base_url()?>/asset_bo/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>/asset_bo/ckfinder/ckfinder.js"></script>
<div class="outer-fill shadow padding15">
<!-- style untuk judul -->
            <div class="judul-page">
              Edit Slider
            </div>
<div class="col-md-12">
              <form class="form-horizontal" role="form" method="post" action="<?php echo site_url('admin_slider/proses_update')?>" enctype="multipart/form-data">
                <div class="form-group">
                  <label class="col-lg-2 control-label">Judul</label>
                  <div class="col-lg-10">
                    <input type="text" name="judul" value="<?php echo $hasil['judul']?>" id="judul" class="form-control input-sm" placeholder="Judul">
                  </div>
                </div>
				<div class="form-group">
                  <label class="col-lg-2 control-label">Gambar</label>
                  <div class="col-lg-10">
				  <?php
				  $path_gambar=base_url()."foto_slider/".$hasil['gambar'];
				  ?>
                    <img src="<?php echo $path_gambar?>" width="200" />
                  </div>
                </div>
				<div class="form-group">
                  <label class="col-lg-2 control-label">Ganti Gambar</label>
                  <div class="col-lg-10">
                    <div class="col-lg-10">
                    <input type="file" name="gambar" id="gambar">
					<input type="hidden" name="tmp_gambar" value="<?php echo $hasil['gambar']?>" id="tmp_gambar" />
					<input type="hidden" name="id" value="<?php echo $hasil['id_slider']?>" id="id" />
                    <p class="help-block">Kalau gambar tidak diganti dikosongkan saja</p>
                  </div>
                  </div>
                </div>
                
                
                <div class="form-group">
                  <label class="col-lg-2 control-label">Konten</label>
                  <div class="col-lg-10">
                    <textarea class="form-control input-sm" rows="7" name="konten" id="konten" cols="80"><?php echo $hasil['konten']?></textarea>
                  </div>
                </div>
               
			   <div class="form-group">
                  <label class="col-lg-2 control-label">Link</label>
                  <div class="col-lg-10">
                    <input type="text" name="link" id="link" value="<?php echo $hasil['link']?>" class="form-control input-sm">
					<p class="help-block">Ex : http://www.google.com</p>
                  </div>
                </div>
				<div class="form-group">
                  <label class="col-lg-2 control-label">Text Link</label>
                  <div class="col-lg-10">
                    <input type="text" name="text_link" id="text_link" value="<?php echo $hasil['text_link']?>" class="form-control input-sm">
                  </div>
                </div>
                <div class="form-group">
                  <div class="col-lg-offset-2 col-lg-10">
                    <button type="submit" class="btn btn-primary btn-sm" name="simpan">Simpan</button>
                    <button type="reset" class="btn btn-warning btn-sm" name="reset">Reset</button>
                  </div>
                </div>
              </form>
            </div>
<div class="clearfix"></div>
</div>
